<template>
  <div class="app">
    <h2>我是App组件</h2>
    <Person :name="name" :age="age" :car="car"/>
  </div>
</template>

<script>
  import Person from './components/Person'
  export default {
    name:'App',
    components:{Person},
    data() {
      return {
        name:'静静',
        age:18,
        car:{brand:'雅迪',color:'粉色'}
      }
    },
  }
</script>

<style>
  .app {
    background-color: #ddd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
</style>